home *** CD-ROM | disk | FTP | other *** search
- countcodes {
- %num = $count(*1,)
- %num = %num + $count(*1,)
- %num = %num + $count(*1,)
- %num = %num + $count(*1,)
- %num = %num + $count(*1,)
- return %num
- }
-
- <----- copy to here -----
-
- Now to use this, you call the routine from an identifier like this...
-
-
- 1:on text:*:*: {
- if ($countcodes($parms) > 30) {
- msg $chan You have typed over 30 control codes, isn't that a bit much?
- }
- }
-
- That's it! Easy as pie. =)
-
-